package com.jic.product.service;

import java.lang.Long;
import java.util.List;

import com.jic.common.base.vo.RestResult;
import com.jic.product.entity.CategoryPropertyName;
import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.product.manage.request.CategoryPropertyNameListRequest;
import com.jic.product.manage.request.CategoryPropertyNameRequest;
import com.jic.product.manage.request.ProductParentRequest;
import com.jic.product.manage.response.CategoryPropertyNameResponse;

/**
 * 类目属性名
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-01-10 07:03:01
 */
public interface CategoryPropertyNameService {

    long insert(CategoryPropertyName categoryPropertyName);

    long delete(Long id);

    long update(CategoryPropertyName categoryPropertyName);

    CategoryPropertyName queryByPrimaryKey(Long id);

    List<CategoryPropertyName> query(CategoryPropertyName categoryPropertyName);

    PageResult<CategoryPropertyName> queryPage(CategoryPropertyName categoryPropertyName, Page pageQuery);

    RestResult<List<CategoryPropertyNameResponse>> getCategoryPropertyName(CategoryPropertyNameRequest categoryPropertyNameRequest);

    RestResult<Boolean> saveCategoryPropertyName(CategoryPropertyNameListRequest categoryPropertyNameListRequest);

}